package main

import (
	"github.com/lifei6671/mredis/mredis"
	"log"
	"fmt"
)


func main() {
	client,err := mredis.NewRedisClient("127.0.0.1",6379,10,"")

	if err != nil{
		log.Fatalf("建立对象失败：%s",err)
	}
	command,err := client.Command()
	if err != nil{
		log.Fatalf("获取命令对象失败:%s",err)
	}
	t,err := command.Time()
	if err != nil{
		log.Fatalf("获取命令对象失败:%s",err)
	}
	fmt.Println(t)
	l,err := command.GetKeys("MSET","a","b")
	if err != nil{
		log.Fatalf("获取命令对象失败:%s",err)
	}
	fmt.Println(l)
}
